package com.nanyuanbeizhi.mapper;
import com.nanyuanbeizhi.pojo.User;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper
{
    @Select("select name,gender,age,birthday,hometown,signature from user where id=#{id}")
    public List<User> getUsers(int id);

    @Insert("insert into user(dongtai) values(#{id})")
    void addDongtai(String dongtai);

   @Update("update user set name=#{name},gender=#{gender},age=#{age},birthday=#{birthday},hometown=#{hometown},signature=#{signature} where id = #{id}")
   void updateUser(String name,String gender,String age,String birthday,String hometown,String signature);




}
